<?php 
include './functions.php';
$data = include './data.php';
if(IS_POST){
$data[] = $_POST;	
//p($_POST);exit();
$phpCode = var_export($data,true);
file_put_contents('data.php', "<?php\r\nreturn " . $phpCode . " \r\n ?>");	
success('添加成功', './Index.php');	
}
include './indexs.html';
 ?>